<template>
  <div class="keyVideo">
    <div class="title">
      <stitle :bg="bg" text="罐区位置示意图" :type="0"/>
    </div>
    <div class="placepic">
      <div class="fatbox" v-for="(item, index) in pics" :key="index">
        <div class="sonbox" :style="`background-image:url(${item.pic})`"></div>
        <div class="botmes">
          <span class="dot"></span>
          <span class="mes">{{ item.mes }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import stitle from "@/components/common/stitle";
import store from "@/utils/store";
export default {
  name: "keyVideo",
  components: {
    stitle,
  },
  data() {
    return {
      bg: require("@/assets/images/DispatchCommand/stitle.png"),
      state: store.state,
      pics: [
        {
          pic: require("@/assets/images/envMon/fakepic.png"),
          mes: "一号罐区",
        },
        {
          pic: require("@/assets/images/envMon/fakepic.png"),
          mes: "厂区全部罐区",
        },
        {
          pic: require("@/assets/images/envMon/fakepic.png"),
          mes: "二号罐区",
        },
      ],
    };
  },
  mounted() {},
  computed: {},
};
</script>


<style lang="scss"  scoped>
.keyVideo {
  width: 900px;
  height: 240px;
  position: absolute;
  right: 80px;
  top: 790px;
  z-index: 10;
  .title {
    width: 375px;
    margin: 0 left;
  }
  .placepic {
    width: 97%;
    height: 160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    .fatbox {
      position: relative;
      width: 260px;
      height: 160px;
      border: 2px solid #305383;
      border-radius: 3px;
      padding: 8px;
      display: flex;
      justify-content: space;
      .sonbox {
        width: 100%;
        height: 100%;
        background-size: 100% 100%;
        background-position: center;
      }
      .botmes {
        position: absolute;
        width: 94.5%;
        height: 30px;
        background: #00000070;
        bottom: 0px;
        font-size: 14px;
        font-family: Source Han Sans SC;
        font-weight: 400;
        color: #ffffff;
        line-height: 30px;
        .dot{
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #0090FF;
            margin:0 5px;
        }
      }
    }
  }
}
</style>